﻿using OpSystem.common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OF.Component.Model;
using OF.Component.BLL;

namespace OpSystem
{
    public partial class UserSystem : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SystemBind();
            }
        }

        private void SystemBind()
        {
            IList<AuthoritySystemInfo> syslist = AuthoritySystemOperate.GetSystemInfoByUserId(CurrentUser.UserId);
            syslist = syslist.Where(a => a.SystemCode != SystemCode).ToList();
            this.rptList.DataSource = syslist;
            this.rptList.DataBind();
        }
    }
}